home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / wlib11_2.zip / EXAMPLES.EXE / EXAM27.C < prev    next >
C/C++ Source or Header  |  1991-03-13  |  591b  |  21 lines

  1.   #include "window.h"
  2.   #define NORM   CREATE_VIDEO_ATTRIBUTE(black,white)
  3.  
  4.   WPOINTER w;
  5.   char buf[14] = {0};      /* Null all elements of buf */
  6.  
  7.   main()
  8.   {
  9.     int i;
  10.     WindowInitializeSystem();
  11.     WindowSaveInitial(0);
  12.  
  13.  
  14.     w = WindowInitialize(BORDER,1,1,20,10,NORM,NORM,SINGLEBOX);
  15.     WindowOpen(w);
  16.     WindowDisplay(w,1,NOEFFECT);
  17.     WindowWriteString(w,"Hello World!!",1,1);/* Write String */
  18.     WindowReadAttributes(w,buf,1,1,13);      /* Read attributes */
  19.     GET_KEY();
  20.     WindowWriteString(w,buf,2,1);            /* Write what we have read */
  21.   }